import instance from "@/config/request"
export const fenlei=async(canshu)=>{
    return await instance.post('/category/findByUserId',canshu)
}

export const savecategory=async(canshu)=>{
    return await instance.post('/category/add',canshu)
}

export const deletecategory=async(id)=>{
    return await instance.get('/category/delete01/'+id)
}

export const xiangCategory=async(id)=>{
    return await instance.get('/category/findById/'+id)
}

export const selectleixingId=async(id)=>{
    return await instance.get('/category/selectleixingId/'+id)
}